package com.project.platform.mapper;

import com.project.platform.entity.CheckupRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


public interface CheckupRecordMapper {
    List<CheckupRecord> queryPage(Integer offset, Integer pageSize, @Param("query") Map<String, Object> query);

    int queryCount(@Param("query") Map<String, Object> query);

    @Select("SELECT * FROM checkup_record WHERE id = #{id}")
    CheckupRecord selectById(Integer id);

    @Select("SELECT * FROM checkup_record")
    List<CheckupRecord> list();

    int insert(CheckupRecord entity);

    int updateById(CheckupRecord entity);

    boolean removeByIds(List<Integer> ids);

}